home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2739 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: mail2news.demon.co.uk!intellic.demon.co.uk
  2. From: Chris Trueman <truemanc@intellic.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How do I suppress output to the screen?
  5. Date: Tue, 23 Jan 96 10:22:11 GMT
  6. Organization: IntelliCorp
  7. Message-ID: <822392531snz@intellic.demon.co.uk>
  8. References: <DLM5xr.FtM@eskimo.com>
  9. Reply-To: truemanc@intellic.demon.co.uk
  10. X-NNTP-Posting-Host: intellic.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.30
  12. X-Mail2News-Path: intellic.demon.co.uk
  13.  
  14. In article <DLM5xr.FtM@eskimo.com> maryann@eskimo.com "C Marsho" writes:
  15.  
  16. >If I use the `system' function to execute a DOS command, how can I
  17. >keep the screen blank?  I am talking about the move command
  18. >specifically.  It types:
  19. >        C:\file.txt  => c:\dir2\file.txt
  20. >on the screen, and I don't want it to.  How do I prevent this using
  21. >BC++ 2.0?
  22. >Reply to maryann@eskimo.com please.
  23.  
  24. You could try:
  25.  
  26.     system("command > nul");
  27.  
  28. This traps both stdout and stderr messages. BTW, nul is not a file
  29. it's special.
  30.  
  31.             - Chris
  32.  
  33. -============================================================================-
  34. IntelliCorp Applications Consultant / E-mail: truemanc@intellic.demon.co.uk
  35. LiveModel and PowerModel are part   / CServe: 100255,701
  36. of IntelliCorp's MODELWORKS        / Tel   : +44 (0)1344 305305
  37. application development suite.      / Fax   : +44 (0)1344 305100
  38. -============================================================================-
  39.